package com.cskaoyan.service.mallservice;

import com.cskaoyan.bean.mallbean.Order;
import com.cskaoyan.bean.mallbean.OrderGoods;
import com.cskaoyan.vo.mallvo.OrderDetailVo;
import com.cskaoyan.vo.mallvo.OrderListVo;

import java.util.List;
import java.util.Map;

/**
 * @author hsp
 * @date 2021/5/10 16:08
 */
public interface OrderService {
    OrderListVo queryOrder(Integer page, Integer limit, Integer[] orderStatusArray, String sort, String order, Integer userId, String orderSn);

    OrderDetailVo getDetailId(Integer id);

    void refund(Integer orderId, Integer refundMoney);

    void ship(Integer orderId, String shipChannel, String shipSn);

    Map<String,Object> queryOrder(Integer page, Integer size, Integer userId, Integer showType);

    List<OrderGoods> queryOrderGoods(Integer orderId);

    List<Order> queryOrderDetail(Integer orderId);

    void orderStatusUpdate(Integer orderId, Short orderStatus);

    void orderDelete(Integer orderId);

    OrderGoods queryOrderGoodsSingle(Integer orderId, Integer goodsId);

    void orderCommentUpdate(Integer userId, String content, Boolean hasPicture, Integer orderGoodsId, List<String> picUrls, Short star);

    void orderCancel(Integer orderId, Short orderStatus);

    Integer orderSubmit(Integer addressId, Integer cartId, Integer couponId, String message, Integer userId);
}
